package main

import (
	"Infinichat_mixed/back/router"
	"Infinichat_mixed/back/utils"
	_ "github.com/jinzhu/gorm/dialects/mysql" // 引入mysql驱动
)

func init() {
	utils.InitConfig()
	utils.InitMySQL()
	utils.InitRedis()
}

func main() {
	r := router.Router()

	//service.Add100Users()
	defer utils.DB.Close()
	r.Run(":8080")
}
